home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / FROMUTS / UNIXLIB37B / test / c / extest3 < prev    next >
Text File  |  1992-03-15  |  292b  |  26 lines

  1. #include <stdlib.h>
  2. #include <stdio.h>
  3.  
  4. #include "sys/unix.h"
  5.  
  6. extern void _exit(int);
  7.  
  8. int main(int argc,char **argv)
  9. {
  10. switch (vfork())
  11.     {
  12.     case -1:
  13.         perror("");
  14.         exit(1);
  15.         break;
  16.     case 0:
  17.         execv("allocatest",argv);
  18.         perror("");
  19.         _exit(1);
  20.         break;
  21.     default:
  22.         wait(0);
  23.         break;
  24.     }
  25. }
  26.